<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>CryptoAuthLib: tng_atca.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">CryptoAuthLib
   </div>
   <div id="projectbrief">Microchip CryptoAuthentication Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('a00047_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">tng_atca.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="a00047.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef TNG_ATCA_H</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define TNG_ATCA_H</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="a00224.html">basic/atca_basic.h</a>&quot;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;</div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="a00997.html#gadc3504154ad83e140440f65534c15c63">   18</a></span>&#160;<span class="preprocessor">#define TNG22_PRIMARY_KEY_SLOT 0</span></div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="a00997.html#ga7f5e2986348fe1200f43e5456dd90cc7">   19</a></span>&#160;<span class="preprocessor">#define TNGTN_PRIMARY_KEY_SLOT 1</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="a00997.html#ga91acea350b146040fc32c64eac8054f7">   21</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;{</div><div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="a00997.html#gga91acea350b146040fc32c64eac8054f7a5b74509d0d64689d7acb7abf01a60f3e">   23</a></span>&#160;    <a class="code" href="a00997.html#gga91acea350b146040fc32c64eac8054f7a5b74509d0d64689d7acb7abf01a60f3e">TNGTYPE_UNKNOWN</a>,</div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="a00997.html#gga91acea350b146040fc32c64eac8054f7a977c3f9fab34c7b46991dc1b2c84cb56">   24</a></span>&#160;    <a class="code" href="a00997.html#gga91acea350b146040fc32c64eac8054f7a977c3f9fab34c7b46991dc1b2c84cb56">TNGTYPE_22</a>,</div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="a00997.html#gga91acea350b146040fc32c64eac8054f7a08422f2a9b83a26469ab56fa3f3cfa7c">   25</a></span>&#160;    <a class="code" href="a00997.html#gga91acea350b146040fc32c64eac8054f7a08422f2a9b83a26469ab56fa3f3cfa7c">TNGTYPE_TN</a></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;} <a class="code" href="a00997.html#ga91acea350b146040fc32c64eac8054f7">tng_type_t</a>;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<a class="code" href="a00173.html#a22bd6643f31f1d75dc3e7ea939f468cd">ATCA_STATUS</a> <a class="code" href="a00997.html#ga421d9b1fd3aba60c947d6b3efb122390">tng_get_type</a>(<a class="code" href="a00997.html#ga91acea350b146040fc32c64eac8054f7">tng_type_t</a>* type);</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<a class="code" href="a00173.html#a22bd6643f31f1d75dc3e7ea939f468cd">ATCA_STATUS</a> <a class="code" href="a00997.html#ga6bdd6b8ace7a98b7efbc13f85ffaac1a">tng_get_device_pubkey</a>(uint8_t *public_key);</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;}</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="a00224_html"><div class="ttname"><a href="a00224.html">atca_basic.h</a></div><div class="ttdoc">CryptoAuthLib Basic API methods - a simple crypto authentication API. These methods manage a global A...</div></div>
<div class="ttc" id="a00997_html_gga91acea350b146040fc32c64eac8054f7a977c3f9fab34c7b46991dc1b2c84cb56"><div class="ttname"><a href="a00997.html#gga91acea350b146040fc32c64eac8054f7a977c3f9fab34c7b46991dc1b2c84cb56">TNGTYPE_22</a></div><div class="ttdef"><b>Definition:</b> tng_atca.h:24</div></div>
<div class="ttc" id="a00997_html_gga91acea350b146040fc32c64eac8054f7a5b74509d0d64689d7acb7abf01a60f3e"><div class="ttname"><a href="a00997.html#gga91acea350b146040fc32c64eac8054f7a5b74509d0d64689d7acb7abf01a60f3e">TNGTYPE_UNKNOWN</a></div><div class="ttdef"><b>Definition:</b> tng_atca.h:23</div></div>
<div class="ttc" id="a00173_html_a22bd6643f31f1d75dc3e7ea939f468cd"><div class="ttname"><a href="a00173.html#a22bd6643f31f1d75dc3e7ea939f468cd">ATCA_STATUS</a></div><div class="ttdeci">ATCA_STATUS</div><div class="ttdef"><b>Definition:</b> atca_status.h:41</div></div>
<div class="ttc" id="a00997_html_ga91acea350b146040fc32c64eac8054f7"><div class="ttname"><a href="a00997.html#ga91acea350b146040fc32c64eac8054f7">tng_type_t</a></div><div class="ttdeci">tng_type_t</div><div class="ttdef"><b>Definition:</b> tng_atca.h:21</div></div>
<div class="ttc" id="a00997_html_ga421d9b1fd3aba60c947d6b3efb122390"><div class="ttname"><a href="a00997.html#ga421d9b1fd3aba60c947d6b3efb122390">tng_get_type</a></div><div class="ttdeci">ATCA_STATUS tng_get_type(tng_type_t *type)</div><div class="ttdoc">Get the type of TNG device.</div><div class="ttdef"><b>Definition:</b> tng_atca.c:4</div></div>
<div class="ttc" id="a00997_html_ga6bdd6b8ace7a98b7efbc13f85ffaac1a"><div class="ttname"><a href="a00997.html#ga6bdd6b8ace7a98b7efbc13f85ffaac1a">tng_get_device_pubkey</a></div><div class="ttdeci">ATCA_STATUS tng_get_device_pubkey(uint8_t *public_key)</div><div class="ttdoc">Uses GenKey command to calculate the public key from the primary device public key.</div><div class="ttdef"><b>Definition:</b> tng_atca.c:32</div></div>
<div class="ttc" id="a00997_html_gga91acea350b146040fc32c64eac8054f7a08422f2a9b83a26469ab56fa3f3cfa7c"><div class="ttname"><a href="a00997.html#gga91acea350b146040fc32c64eac8054f7a08422f2a9b83a26469ab56fa3f3cfa7c">TNGTYPE_TN</a></div><div class="ttdef"><b>Definition:</b> tng_atca.h:25</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d422163b96683743ed3963d4aac17747.html">app</a></li><li class="navelem"><a class="el" href="dir_6319b470d978b666f57c44c2de446197.html">tng</a></li><li class="navelem"><a class="el" href="a00047.html">tng_atca.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>
